package com.quectel.mobile.vo.training;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author rananxin
 * @email ryan.ran@quectel.com
 * @date 2022/5/23 18:28
 */
@Data
@Schema
public class CommentAppraiseReqVo {

    @NotNull(message = "课程id不能为空")
    @Schema(description = "课程id")
    private Long trainingId;

    @NotNull(message = "评分不能为空")
    @DecimalMin("0.5")
    @DecimalMax("5")
    @Schema(description = "评分")
    private BigDecimal score;

    @Schema(description = "内容")
    private String content;
}
